package com.study.samsung.Service;

import com.study.samsung.Dao.CollectDAO;
import com.study.samsung.Dao.UserDAO;
import com.study.samsung.Entity.Collect;
import com.study.samsung.Utils.Pager;

import java.util.List;

public class CollectService {
    CollectDAO cd = new CollectDAO();

    public List<Collect> selectAllCol(Integer uid){
        return cd.selectAllCol(uid);
    }
    public List<Collect> selectAllImg(Integer uid,Integer pageno){
        return cd.selectAllImg(uid,pageno);
    }

//    分页
public Pager selectAllColfy(Integer uid, Integer pageno, Integer pagesize){
    return cd.selectAllColfy(uid,pageno,pagesize);
}

    public Collect selectOne(Integer uid, Integer sid){
        return cd.selectOne(uid,sid);
    }

}
